/*
 * This source code is part of TWaver 4.0
 *
 * Serva Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2002 - 2011 Serva Software. All rights reserved.
 */

package demo.network.miscellaneous.game;

import twaver.BaseElement;

public class NodePoint extends BaseElement{

	private int px;
	private int py;
	
	public NodePoint(int px, int py){
		this.px = px;
		this.py = py;
		this.setLocation(GreedySnakeDemo.WIDTH * px, GreedySnakeDemo.WIDTH * py);
	}
	
	public int getPx() {
		return px;
	}

	public int getPy() {
		return py;
	}

	public int getHeight() {
		return GreedySnakeDemo.WIDTH;
	}
	public int getWidth() {
		return GreedySnakeDemo.WIDTH;
	}
}